package com.kaibes.admin.monitior;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kaibes.web.admin.AdminMenu;
import com.kaibes.web.admin.AdminMenuRes;

@Configuration
public class MonitiorInit {

    @Bean
    public AdminMenu monitiorMenu() {
        AdminMenu parent = new AdminMenu();
        parent.setKey("monitior");
        parent.setName("服务模块");
        parent.setIcon("fas fa-video");
        parent.setHref("");
        parent.setSort(3);
        parent.setParentKey(AdminMenuRes.MENU_BASE);
        return parent;
    }
    
    @Bean
    public AdminMenu hardwareMenu() {
        AdminMenu menu = new AdminMenu();
        menu.setKey("server-status");
        menu.setName("硬件状态");
        menu.setIcon("fas fa-server");
        menu.setHref("/admin/monitor/server");
        menu.setSort(1);
        menu.setParentKey("monitior");
        return menu;
    }
    
}
